package com.administration.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.core.entity.BaseEntity;

@Entity
@Table(name = "group_privileges")
public class GroupPrivilege extends BaseEntity {
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "recid", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long recid;
	// ---------------------------//
	@Column(name = "group_id")
	private Long groupId;
	@Column(name = "privilege_id")
	private Long privilageId;
	@Column(name = "access_id")
	private Long accessId;

	public GroupPrivilege() {

	}

	public GroupPrivilege(Long recid) {
		super();
		this.recid = recid;
	}

	public GroupPrivilege(Long groupId, Long privilageId) {
		super();
		this.groupId = groupId;
		this.privilageId = privilageId;
	}

	public GroupPrivilege(Long groupId, Long privilageId, Long accessId) {
		super();
		this.groupId = groupId;
		this.privilageId = privilageId;
		this.accessId = accessId;
	}


	@Override
	public String toString() {
		return "GroupPrivilege [recid=" + recid + ", groupId=" + groupId
				+ ", privilageId=" + privilageId + ", accessId=" + accessId
				+ "]";
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setPrivilageId(Long privilageId) {
		this.privilageId = privilageId;
	}

	public Long getPrivilageId() {
		return privilageId;
	}

	public void setAccessId(Long accessId) {
		this.accessId = accessId;
	}

	public Long getAccessId() {
		return accessId;
	}

	public void setRecid(Long recid) {
		this.recid = recid;
	}

	public Long getRecid() {
		return recid;
	}

}
